home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Other Langs
/
MacPerl ƒ
/
Perl Source ƒ
/
Perl
/
t
/
op
/
glob.t
< prev
next >
Wrap
Text File
|
1993-10-23
|
469b
|
23 lines
#!./perl
# $Header: glob.t,v 4.0 91/03/20 01:52:49 lwall Locked $
print "1..4\n";
@ops = <op/*>;
$list = join(' ',@ops);
chop($otherway = `echo op/*`);
print $list eq $otherway ? "ok 1\n" : "not ok 1\n$list\n$otherway\n";
print $/ eq "\n" ? "ok 2\n" : "not ok 2\n";
while (<jskdfjskdfj* op/* jskdjfjkosvk*>) {
$not = "not " unless $_ eq shift @ops;
$not = "not at all " if $/ eq "\0";
}
print "${not}ok 3\n";
print $/ eq "\n" ? "ok 4\n" : "not ok 4\n";